const path = require('path')
module.exports = {
  devServer: {
    port: 9527,
    open: true,
    proxy: {
      '/api': {
        target: 'http://rap2.taobao.org:38080/app/mock/264154',
        changeOrigin: true,
        ws: false,
        pathRewrite: {
          '^/api': '/api'
        }
      }
    }
  },
  lintOnSave: false,
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', path.resolve('src'))
  }
}
